package com.achievement.service.author;

import com.achievement.domain.dto.author.MedicineAuthorDTO;
import com.achievement.domain.entity.author.MedicineAuthorEntity;
import com.achievement.domain.vo.author.MedicineAuthorVO;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;


public interface IMedicineAuthorService extends IService<MedicineAuthorEntity>
{
    List<MedicineAuthorEntity> getListByConditions(MedicineAuthorDTO dto);
    MedicineAuthorVO getInfoById(String id);

    boolean addOrUpdate(List<MedicineAuthorDTO> list,String medicineId);

    boolean add(MedicineAuthorDTO dto);
    boolean addBatch(List<MedicineAuthorDTO> list,String medicineId);

    boolean update(MedicineAuthorDTO dto);

    boolean batchRemove(List<String> ids);

    List<MedicineAuthorVO> getListByMedicineId(String medicineId);

    boolean batchRemoveByMedicineIds(List<String> medicineIds);

}
